<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>path</title>
	</head>
	<body>
		<div>
			wp love
		</div>
		
		<div>
			<table border="1" cellspacing="0" cellpadding="0">
				<tr><th>Header</th></tr>
				<tr><td>Data</td></tr>
			</table>
		</div>
		
		<!-- <script src="wp.js" type="text/javascript" charset="utf-8"></script> -->
		<script type="text/javascript">
			function getQueryParams() {
				const result = {};
				const querystring = window.location.search;
				const reg = /[?&][^?&]+=[^?&]+/g;
				const found = querystring.match(reg);
			
				if (found) {
					found.forEach(item => {
						let temp = item.substring(1).split('=');
						let key = temp[0];
						let value = temp[1];
						result[key] = value;
					})
				}
				
				console.log(result);
			
				return result;
			}
			getQueryParams();
		</script>
	</body>
</html>
